using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class TableRowType
    {

        private string _Height;
        private GTame.ReportParser.TableCellsType _TableCells;
        private GTame.ReportParser.VisibilityType _Visibility;

        public string Height
        {
            get
            {
                return _Height;
            }
            set
            {
                _Height = value;
            }
        }

        public GTame.ReportParser.TableCellsType TableCells
        {
            get
            {
                if (_TableCells == null)
                    _TableCells = new GTame.ReportParser.TableCellsType();
                return _TableCells;
            }
            set
            {
                _TableCells = value;
            }
        }

        public GTame.ReportParser.VisibilityType Visibility
        {
            get
            {
                if (_Visibility == null)
                    _Visibility = new GTame.ReportParser.VisibilityType();
                return _Visibility;
            }
            set
            {
                _Visibility = value;
            }
        }

        public TableRowType()
        {
        }

        public Rdl.TableRowType Write()
        {
            Rdl.TableRowType tableRowType = new Rdl.TableRowType();
            System.Collections.ArrayList arrayList = new System.Collections.ArrayList();
            if (_Height != null)
                arrayList.Add(_Height);
            if (_TableCells != null)
                arrayList.Add(_TableCells.Write());
            if (_Visibility != null)
                arrayList.Add(_Visibility.Write());
            tableRowType.Items = arrayList.ToArray();
            arrayList = null;
            return tableRowType;
        }

    } // class TableRowType

}

